package com.zzty.txj1.dao;

import com.zzty.txj1.entity.BusPoint;
import com.zzty.txj1.entity.RestaurantPoint;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BusPointDao {
    @Select("select * from buspoint where id = #{id}")
    BusPoint getBusPointById(BusPoint busPoint);

    @Insert("insert into buspoint (name,X,Y) values(#{name},#{X},#{Y})")
    Integer addBuspoint(BusPoint busPoint);

    @Select("select * from buspoint")
    List<BusPoint> getAllBuspoint();
}
